package com.peko.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：Peko
 * @Description：TODO
 * @Date：Created in 11:28 2023/8/3
 */

@RestController
public class ConfigClientController {

    private static final Logger log = LoggerFactory.getLogger("CustomGlobalFilter");

    @Value("${name}")
    private String name;

    @GetMapping("demo")
    public String demo(){
        log.info("打印环境变量 name = {}",name);
        return "config client ok !";
    }
}
